# coding=utf-8
# 使用python的模块
'''
from random import random
count = 0
for i in range(10000):
    num = random()
    if num == 0 or num == 1:
        count += 1
print(count)
'''

from random import randint
print("Welcome to the number guessing game!")
correct_num = randint(1,10)
print("I have my number:1-10")
num = int(raw_input("What's your guess?"))
while num != correct_num:
    if num > correct_num:
        print("That's is to high. Try again!")
    else:
        print("That's is to low. Try again!")
    num = int(raw_input("What's your guess?"))
print("You got it! Thanks for playing!")